<?php

class LayerGateway extends TableDataGateway
{           
        
    public function __construct()
    {
        $this->establishConnection();
    }
        
    public function __destruct(){}
    
    public function getLayers()
    {
        $stmt = $this->database_connection_->newStatement('SELECT e_id, e_name, e_abbr FROM ebene order by e_name');
        $stmt->execute();
        $arr_return = array();
        while($row = $stmt->fetch(PDO::FETCH_ASSOC))
            $arr_return[] = $row;
        return $arr_return;
    }
}

?>
